<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!doctype html>
<html>
<head>
<base href="<%=basePath%>">

<title>学科管理</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">

<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
<script type="text/javascript"
	src="<%=path%>/resources/script/subjectManage/subjectassign_list.js"></script>
<script type="text/javascript"
	src="<%=path%>/resources/script/jquery.qrcode.min.js"></script>
<script type="text/javascript"
	src="<%=path%>/resources/script/jquery.jqprint-0.3.js"></script>
</head>

<body class="easyui-layout" fit="true">
	<div data-options="region:'west',split:true" title="专业树" style="width:250px;">
		<ul id="subject_tree" class="easyui-tree"></ul>
	</div>
	<div data-options="region:'center'">
		<input id="id" name="id" type="hidden" value="${usergroup.id }" />
		<!-- DataGrid -->
		<table id="dg" class="easyui-datagrid" title="学科列表"
			style="width: auto; height: auto;"
			data-options="url:'subject/queryList1',
			                queryParams: {usergroupId :$('#id').val()},
			    			fit:true,
			    			rownumbers:true,
			    			toolbar:'#tb',
			    			onLoadSuccess:dgLoad,
			    			pagination:true">
			<thead>
				<tr>
					<th data-options="field:'ck',checkbox:true"></th>
					<th data-options="field:'id',hidden:true">学科ID</th>
					<th data-options="field:'name', width:150">学科名称</th>
					<th data-options="field:'remark', width:200">描述</th>
					<th data-options="field:'createTime', width:150">创建时间</th>
				</tr>
			</thead>
		</table>

		<!-- toolbar -->
		<div id="tb" style="padding: 5px; height: auto;">
			<!-- search -->
			<div>
				<table>
					<tr>
						<td>学科名称：<input class="easyui-validatebox edit-input"
							id="name" name="name" style="width: 150px;" /></td>
						<td><a href="javascript:void(0);" class="easyui-linkbutton"
							iconCls="icon-search" onclick="doSearch();">查询</a></td>
						<td><a href="javascript:void(0);" class="easyui-linkbutton"
							iconCls="icon-reload" onclick="reSearch();">重置</a></td>
					</tr>
				</table>
			</div>
			<!-- opreate -->
    	<div style="margin-bottom: 5px; text-align: right;">
    		 <a href="javascript:void(0);" id="assignBtn" class="easyui-linkbutton" title="更新关联" iconCls="icon-add" plain="true">更新关联</a>
    		<!-- <a href="javascript:void(0);" id="add" class="easyui-linkbutton" title="添加" iconCls="icon-add" plain="true">添加</a>
    		<a href="javascript:void(0);" id="edit" class="easyui-linkbutton" title="修改" iconCls="icon-edit" plain="true">修改</a>
    		<a href="javascript:void(0);" id="remove" class="easyui-linkbutton" title="删除" iconCls="icon-remove" plain="true">删除</a>
    		<a href="javascript:void(0);" id="permissions" class="easyui-linkbutton" title="分配权限" iconCls="icon-edit" plain="true">分配权限</a>
    		<a href="javascript:void(0);" id="roleAuthority" class="easyui-linkbutton" title="分配权限" iconCls="icon-edit" plain="true">分配权限</a>
    		<a href="javascript:void(0);" id="roleUser" class="easyui-linkbutton" title="分配权限" iconCls="icon-edit" plain="true">关联用户</a> -->
    	</div>
		</div>	
	</div>
</body>
</html>
